

//class Base{
//    public int a;
//    public int b;
//    public String my_Name;
//    public int my_Age;
//    public void methodA() {
//        System.out.println("Base中的methodA");
//    }
//    public void methodB() {
//        System.out.println("Base中的methodB");
//    }
//    public Base(String name, int age) {
//        this.my_Name = name;
//        this.my_Age = age;
//        System.out.println("Base(String name, int age)");
//
//    }
//    public Base() {
//
//    }
//
//}
//class Derived extends Base{
//    public int a;
//
//    public int b;
//    public void methodA() {
//        this.a = 100;
//        this.b = 200;
//        System.out.println("Derived中的methodA");
//    }
//    public void methodB() {
//        super.methodB();
//        super.a = 300;
//        super.b = 400;
//        System.out.println("Derived中的methodB");
//    }
//    public Derived() {
//        super();
//    }
//    public Derived(String name, int age) {
//        super(name, age);
//        System.out.println("Derived(String name, int age)");
//
//    }
//
//}

class Person{
    private int age ;
    public void setAge(int my_Age){
        this.age = my_Age;
    }
    public int getAge(){
        return this.age;
    }
}
class Child extends Person{

    public int b = 10;
    public void fun() {
        setAge(10);
        System.out.println(getAge());
    }
    public static void fun1() {

    }
    public static void fun2() {
        fun1();
    }
}
public class test {

    public static void main(String[] args) {
        Child child = new Child();
        child.fun();
        

    }

    public static void main1(String[] args) {
//        Derived derived = new Derived("hhuahua", 10);
//        System.out.println(derived.my_Name);
//        System.out.println(derived.my_Age);
//        derived.methodA();
//        System.out.println(derived.a);
//        derived.methodB();
//        System.out.println(derived.a);
//        Derived d = new Derived();
//        d.methodB();
    }
}
